package cn.iocoder.yudao.module.system.controller.admin.category.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Schema(description = "管理后台 - 创建绘本分类 Request VO")
@Data
public class CreateCategoryVO {

    @Schema(description = "分类名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "经典童话")
    @NotNull(message = "分类名称不能为空")
    @Size(min = 2, max = 30, message = "分类名称长度必须在2-30个字符之间")
    private String categoryName;

    @Schema(description = "分类类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "zh", allowableValues = {"zh", "en", "all"})
    @NotNull(message = "分类类型不能为空")
    private String categoryType;

    @Schema(description = "关联的ID数组", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "关联的ID数组不能为空")
    private List<Long> relatedIds;

} 